package com.gcloud.mesh.utils;

import com.gcloud.mesh.header.exception.BaseException;

import java.io.IOException;
import java.net.InetAddress;

public class HttpUtil {

    public static void checkPing(String ip){
        /*try {
            InetAddress inetAddress=InetAddress.getByName(ip);
            if(!inetAddress.isReachable(5*1000)){
                throw new BaseException("带外IP不可达");
            }
        } catch (IOException e) {
            throw new BaseException("网络出错");
        }*/
    }
}
